<?php 
if ($_POST['k']=="") {
 die("Unable Q:350666582");
}
?>
<!DOCTYPE html>
<meta name="renderer" content="webkit" /> 
<meta http-equiv ="X-UA-Compatible" cotent ="IE=edge,chrome=1"/> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<html>
<head>
<title>关键词提取2</title>
</head>
<body>
<?php   
header("Content-Type:text/html; charset=utf8"); 
$hanzi=$_POST['k'];//方便测试GET标题   
$fg=$_POST['fg'];
$gl=$_POST['gl'];
$ts=$_POST['ts'];
$fh= file_get_contents("http://api.pullword.com/get.php?source={$hanzi}&param1={$gl}&param2={$ts}");
$fh = str_replace(PHP_EOL, $fg, $fh);
$fh = str_replace(array("$fg$fg$fg"), "", $fh); 

echo "<script type='text/javascript'> 
    function jsCopy(){ 
        var e=document.getElementById('content');//对象是content 
        e.select(); //选择对象 
        document.execCommand('Copy'); //执行浏览器复制命令

       //alert('已复制好，可贴粘。'); 
    } 
</script> 
<textarea cols='600' name='content' rows='2' id='content'>";
echo $fh;
echo "</textarea> 
<input type=button value='复制' onclick='jsCopy();javascript:window.close();'>";
?> 
点击复制，可以直接复制并关闭当前页面。
 </body></html>
 
